package main

import "gitee.com/dark.H/go-utils/s"

func main() {

	// normal test
	// s.Str("whoami").AsCmd().Cd("..").Cd("~/Desktop").Exec("dir").Outputs().Each(func(i int, item s.Str) {
	// 	item.ANSIBlink().Println("[", i, "]: ")
	// })

	// err test
	// s.Str("git -h").AsCmd().Output().ANSICyan().ANSIStrike().Println()

	// expect test
	s.Str("ls .").AsCmd("..").Cd("stdin_input").Exec("stdin_input.exe",
		s.CSTR_EXPECT, "name:$", s.CSTR_TYPE, "[test username]\n",
		s.CSTR_EXPECT, "password:$", s.CSTR_TYPE, "[test passwprd]\n",
	).Output().ANSIBlink().Println()
	// interact test
	// s.Str("git add -A").AsCmd().Exec("git commit ", s.CSTR_INTERACT).Exec("git push origin master").Output().ANSIUnderline().ANSICyan().ANSIBold().Println()

}
